home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mint99s / welcome.c < prev    next >
C/C++ Source or Header  |  1993-01-10  |  2KB  |  77 lines

  1. /* welcome.c - MiNT welcome message
  2.  * Copyright 1992 Atari Corp.  All Rights Reserved.
  3.  *=======================================================================
  4.  * 920625 kbad
  5.  */
  6. #include "mint.h"
  7. #include "version.h"
  8.  
  9. const char *memprot_notice = "\
  10. You have used -m to turn off memory\r\n\
  11. protection.  On a 68000, you don't\r\n\
  12. need to do this because MiNT will\r\n\
  13. do it for you automagically.\r\n";
  14.  
  15. const char *memprot_warning = "\033p\
  16.             *** WARNING ***            \033q\r\n\
  17. You have turned off memory protection.\r\n\
  18. This is not recommended, and may not be\r\n\
  19. supported in the future.\r\n";
  20.  
  21. const char *greet1 = "\r\n\033p\033f\
  22.  MiNT is Now TOS (" __DATE__ ")         \033q\r\n\
  23.  MiNT v"; /*x.xx prelim version PL xx*/
  24.  
  25. const char *greet2 = "\r\n\
  26.  \xbd 1990,1991,1992 Eric R. Smith\r\n\
  27.  MultiTOS kernel\r\n\
  28.  \xbd 1992,1993 Atari Corporation\r\n\
  29.  All Rights Reserved.\r\n\033p\
  30.  Use this program at your own risk!    \033q\r\n\r\n";
  31.  
  32. #ifdef MULTITOS
  33. /*
  34.  * "boot MultiTOS?" messages, in various langauges:
  35.  */
  36.  
  37. #define MAXLANG 6
  38.  
  39. struct yn_message {
  40.     const char *message;    /* message to print */
  41.     char    yes_let;    /* letter to hit for yes */
  42.     char    no_let;        /* letter to hit for no */
  43. } boot_it[MAXLANG] = {
  44. { "Load MultiTOS?   (y)es (n)o ", 'y', 'n' },
  45. { "MultiTOS laden?   (j)a (n)ein ", 'j', 'n' },
  46. { "Charger MultiTOS?   (o)ui (n)on ", 'o', 'n' },
  47. { "Load MultiTOS?   (y)es (n)o ", 'y', 'n' },        /* reserved */
  48. { "¿Cargar MultiTOS?   (s)i (n)o ", 's', 'n' },    /* upside down ? is 168 dec. */
  49. { "Carica MultiTOS?   (s)i (n)o ", 's', 'n' }
  50. };
  51.  
  52.  
  53. /*
  54.  * ask the user whether s/he wants to boot MultiTOS; returns 1 if
  55.  * yes, 0 if no
  56.  */
  57.  
  58. int
  59. boot_kernel_p()
  60. {
  61.     extern int gl_lang;
  62.     struct yn_message *msg;
  63.     int y;
  64.  
  65.     if (gl_lang >= MAXLANG || gl_lang < 0)
  66.         gl_lang = 0;
  67.     msg = &boot_it[gl_lang];
  68.     Cconws(msg->message);
  69.     y = Cconin();
  70.     if (tolower(y) == msg->yes_let)
  71.         return 1;
  72.     else
  73.         return 0;
  74. }
  75.  
  76. #endif /* MULTITOS */
  77.